package com.epam.giorgadze.task3.runner;

import com.epam.giorgadze.task3.entity.AirCompany;

import java.io.FileNotFoundException;
import java.util.List;

import static com.epam.giorgadze.task3.parsers.ParserManager.DOMManager;
import static com.epam.giorgadze.task3.parsers.ParserManager.SAXManager;
import static com.epam.giorgadze.task3.parsers.ParserManager.StAXMANAGER;


/**
 * User: Luka
 * Date: 15.02.14
 * Time: 19:18
 */
public class AirCompanyRunner {

    public static void main(String[] args) throws InstantiationException, IllegalAccessException, FileNotFoundException {
        List<AirCompany> airCompanyList = SAXManager("resources/aircompany.xml", "resources/aircompany.xsd");
        System.out.println(airCompanyList);
        List<AirCompany> airCompanies = DOMManager("resources/aircompany.xml", "resources/aircompany.xsd");
        System.out.println(airCompanies);
        List<AirCompany> airCompanyList1 = StAXMANAGER("resources/aircompany.xml");
        System.out.println(airCompanyList1);
    }

}